function [ status ] = mx_open_eyelink_connection( mode )
%MX_OPEN_EYELINK_CONNECTION Opens a connection with the eyelink.
%   Creates a connection with the eyelink used a defined ip or a default. 
%   Returns 0 is success, otherwise it failed.
%
%   MODE    Either -1,0,1. 0, opens a connection with the eye tracker, 1, 
%           will create a dummy connection for simulation; -1, initializes the library 
%           but does not open a connection.

%----------------------------------------------------------------------------
% Copyright Eduardo Aponte 2013
% aponteeduardo@gmail.com